package com.service.impl;

import com.dao.CommunityDao;
import com.pojo.Community;
import com.service.CommunityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommunityServiceImpl implements CommunityService {
    @Autowired
    private CommunityDao communityDao;
    @Override
    public List<Community> findAll() {

        return communityDao.findAll();
    }

    @Override
    public Community findById(Integer id) {
        Community community=communityDao.findById(id);
        return community;
    }
}
